package com.lz.ccjdemo.greendao.data;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.JoinProperty;
import org.greenrobot.greendao.annotation.ToOne;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class WarehouseData {

    //设置id  是否自增
    @Id(autoincrement = true)
    public Long id;

    //仓库编号 A、B、C...
    public String warehouse_number;

    //仓库名称
    public String warehouse_name;

    //仓库内容
    public String content;

    /**
     * 外键 指向dish表 id
     */
    private Long dish_id;

    /**
     * 预留字段
     */
    public String  des;

    @Generated(hash = 863333531)
    public WarehouseData(Long id, String warehouse_number, String warehouse_name,
            String content, Long dish_id, String des) {
        this.id = id;
        this.warehouse_number = warehouse_number;
        this.warehouse_name = warehouse_name;
        this.content = content;
        this.dish_id = dish_id;
        this.des = des;
    }

    @Generated(hash = 1463897533)
    public WarehouseData() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWarehouse_number() {
        return this.warehouse_number;
    }

    public void setWarehouse_number(String warehouse_number) {
        this.warehouse_number = warehouse_number;
    }

    public String getWarehouse_name() {
        return this.warehouse_name;
    }

    public void setWarehouse_name(String warehouse_name) {
        this.warehouse_name = warehouse_name;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getDish_id() {
        return this.dish_id;
    }

    public void setDish_id(Long dish_id) {
        this.dish_id = dish_id;
    }

    public String getDes() {
        return this.des;
    }

    public void setDes(String des) {
        this.des = des;
    }

}
